﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NetWebControl.ControlTest.OA
{
    public partial class dp : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.DataPaging1.AttrDbSelect.TableName = "Users";
            this.DataPaging1.AttrDbSelect.KeyField = "Users_Id";
            this.DataPaging1.AttrDbSelect.PageSize = 10;

            this.DataPaging1.AttrDbOperat.SearchListItem = new string[]
            {
                "UserName like '%{{Text-nc}}%'"
            };

            this.DataPaging1.AttrDbOperat.DeleteSql = "update {0} set State=1 where {1}={2}";
            //Response.Write(ARS.PublicTool.Encrypt.EncryptString("11"));


            //this.DataPaging1.WriteQuerySql();
        }
    }
}